﻿<!DOCTYPE html>
@model List<MyMVC.Model.Employee>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>显示数据</title>
    <link rel="stylesheet" href="~/CSS/smusic.css" />

</head>
<body>
    <a href="@Url.Content("/Login/logout")"><input type="button" value="注销" /></a>
    <a href="@Url.Content("/Home/toAccount")"><input type="button" value="账户信息" /></a>

    <h1 style="text-align:center">显示数据</h1>
    <table border="1" align="center" height="100" width="1000">
        <tr style="text-align:center ">
            <td>ID</td>
            <td>头像</td>
            <td>姓名</td>
            <td>年龄</td>
            <td>性别</td>
            <td>出生年月</td>
            <td>工资</td>
            <td>所属部门</td>
            <td colspan="3">相关操作</td>
        </tr>
        @foreach (var item in Model)
        {
            <tr style="text-align:center">
                <td>@item.EmpId</td>
                <td><img src="@item.image" style="height:50px" width="100" /></td>
                <td>@item.EmpName</td>
                <td>@item.Age</td>
                <td>@item.Sex</td>
                <td>@item.AddTime.ToString("yyyy年MM月dd日")</td>
                <td>@item.Wage</td>
                <td>@item.department.DepName</td>
                <td>
                    @Html.ActionLink("修改", "update", new { id = item.EmpId })
                    @Html.ActionLink("删除", "del", new { id = item.EmpId }, new { onclick = "return confirm('你确定要删除吗？')" })
                </td>
            </tr>
        }

        <tr>
            <td colspan="9" style="text-align:center">
                <a href="@Url.Action("toadd")"><input type="button" value="增加数据" /></a>
                <a href="@Url.Action("List2")"><input type="button" value="已删除数据" /></a>

            </td>
        </tr>

    </table>

    @*--------------------------------------------音乐播放器-----------------------------------------------*@
    @*<EMBED src="~/music/%e5%a4%a7%e9%b9%8f,%e9%bb%84%e8%b4%af%e4%b8%ad,%e5%8f%b6%e4%b8%96%e8%8d%a3%20-%20%e4%b8%8d%e5%86%8d%e7%8a%b9%e8%b1%ab%20(Remix%e7%89%88).mp3" autostart=true hidden=true loop=true>*@

    <div class="grid-music-container f-usn">
        <div class="m-music-play-wrap">
            <div class="u-cover"></div>
            <div class="m-now-info">
                <h1 class="u-music-title"><strong>标题</strong><small>歌手</small></h1>
                <div class="m-now-controls">
                    <div class="u-control u-process">
                        <span class="buffer-process"></span>
                        <span class="current-process"></span>
                    </div>
                    <div class="u-control u-time">00:00/00:00</div>
                    <div class="u-control u-volume">
                        <div class="volume-process" data-volume="0.50">
                            <span class="volume-current"></span>
                            <span class="volume-bar"></span>
                            <span class="volume-event"></span>
                        </div>
                        <a class="volume-control"></a>
                    </div>
                </div>
                <div class="m-play-controls">
                    <a class="u-play-btn prev" title="上一曲"></a>
                    <a class="u-play-btn ctrl-play play" title="暂停"></a>
                    <a class="u-play-btn next" title="下一曲"></a>
                    <a class="u-play-btn mode mode-list current" title="列表循环"></a>
                    <a class="u-play-btn mode mode-random" title="随机播放"></a>
                    <a class="u-play-btn mode mode-single" title="单曲循环"></a>
                </div>
            </div>
        </div>
        <div class="f-cb">&nbsp;</div>
        <div class="m-music-list-wrap"></div>
    </div>
    <script src="~/JS/smusic.min.js"></script>
    <script>
        var musicList = [
            {
                title: '说散就散',
                singer: '曲肖冰',
                cover: 'Image/Maroon5.jpg',
                src: 'http://www.170mv.com/kw/other.web.rh01.sycdn.kuwo.cn/resource/n1/76/19/3445195481.mp3'
            }
        ];
        new SMusic({
            musicList: musicList
        });
    </script>

        @*--------------------------------------------视频播放器-----------------------------------------------*@
       
</body>
</html>
